<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="./lib/vue.js"></script>
  </head>
  <body>
    <div id="app">
      <!-- 显示和隐藏 -->
      <p v-if="isShow">出来了 v-if</p>

      <p v-show="isShow">出来了 v-show</p>

      <!-- 条件渲染 -->
      <p v-if="score >= 90">优秀</p>
      <p v-else-if="score >= 70 && score < 90">良好</p>
      <p v-else-if="score >= 60">及格</p>
      <p v-else>不及格</p>
    </div>
    <script>
      new Vue({
        el: '#app',
        data: {
          isShow: false,
          score: 90
        }
      })
    </script>
  </body>
</html>
